import java.util.Random;

/**
 * Created by dllo on 18/4/2.
 */
public class NO1 {
    public static void main(String[] args) {

      /*  Random random = new Random();

        int[] arr = new int[20];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = random.nextInt(11);  //
        }
        for (int i = 0; i < arr.length; i++) {

            if (arr[i] % 2 == 0){
                System.out.println(arr[i]);
            }

        }
        */



        Random random =  new Random();
        int[] arr = new int[20];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = random.nextInt(10);
        }

        for (int i = 0; i < arr.length; i++) {
            if (arr[i] % 2 == 0){
                System.out.println(arr[i]);
            }
        }



    }
}
